export const usenameRules = [
  { required: true, message: '请输入用户名' },
  {
    type: 'string',
    min: 6,
    max: 12,
    message: '用户名长度必须为6-12位',
  },
  {
    pattern: /^[a-zA-Z0-9_]+$/,
    message: '用户名只能由字母、数字、下划线组成',
  },
]

export const passwordRules = [
  { required: true, message: '请输入密码' },
  {
    type: 'string',
    min: 6,
    max: 12,
    message: '密码长度必须为6-12位',
  },
  {
    pattern: /^[a-zA-Z0-9_]+$/,
    message: '密码只能由字母、数字、下划线组成',
  },
]

export const confirmRules = [{ required: true, message: '请再次输入密码' }]

export const statColor = ['#FF2D2D', '#BE77FF', '#2894FF', '#00EC00', '#EAC100', '#FF9D6F']
